/**
 * mock_data.js - 医院病区急救车物资综合管理系统的模拟数据
 * 此文件包含所有角色共享的模拟数据，用于演示系统功能
 * 数据结构设计遵循医院物资管理的实际业务需求
 */
window.mockData = {
    /**
     * 急救车数据数组
     * 包含所有急救车的基本信息、层级结构和物资配置
     * 每个急救车包含：基本信息、状态、位置、层级物资配置
     */
    ambulances: [
        {
            "id": "A001",                    // 急救车唯一标识
            "plateNumber": "A001",           // 急救车编号
            "department": "急诊科",          // 所属科室
            "status": "可用",                // 急救车状态：可用/使用中/维护中/维修中
            "location": "B区-2层-01",        // 存放位置
            "layers": [                      // 层级结构数组，每个急救车分为多个层级
                {
                    "id": "L1001",           // 层级唯一标识
                    "name": "第一层",        // 层级名称
                    "description": "常用药品", // 层级描述
                    "items": [               // 该层级存放的物资列表
                        {
                            "id": "I001",                    // 物资唯一标识
                            "name": "肾上腺素",              // 物资名称
                            "quantity": 3,                   // 当前数量
                            "minQuantity": 5,                // 最低库存数量
                            "expiryDate": "2025-07-01",      // 有效期
                            "status": "临期"                 // 物资状态：正常/临期/库存不足/已过期
                        },
                        {
                            "id": "I002",
                            "name": "生理盐水",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L1002",
                    "name": "第二层",
                    "description": "急救器械",
                    "items": [
                        {
                            "id": "I003",
                            "name": "除颤仪",
                            "quantity": 1,
                            "minQuantity": 1,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L1003",
                    "name": "第三层",
                    "description": "消毒用品",
                    "items": [
                        {
                            "id": "I009",
                            "name": "碘伏",
                            "quantity": 15,
                            "minQuantity": 25,
                            "expiryDate": "2025-07-15",
                            "status": "临期"
                        },
                        {
                            "id": "I010",
                            "name": "一次性注射器",
                            "quantity": 150,
                            "minQuantity": 200,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L1004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "A002",
            "plateNumber": "A002",
            "department": "急诊科",
            "status": "可用",
            "location": "B区-2层-02",
            "layers": [
                {
                    "id": "L2001",
                    "name": "第一层",
                    "description": "常用药品",
                    "items": [
                        {
                            "id": "I001",
                            "name": "肾上腺素",
                            "quantity": 3,
                            "minQuantity": 5,
                            "expiryDate": "2025-07-01",
                            "status": "临期"
                        },
                        {
                            "id": "I002",
                            "name": "生理盐水",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L2002",
                    "name": "第二层",
                    "description": "急救器械",
                    "items": [
                        {
                            "id": "I003",
                            "name": "除颤仪",
                            "quantity": 1,
                            "minQuantity": 1,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L2003",
                    "name": "第三层",
                    "description": "消毒用品",
                    "items": [
                        {
                            "id": "I009",
                            "name": "碘伏",
                            "quantity": 15,
                            "minQuantity": 25,
                            "expiryDate": "2025-07-15",
                            "status": "临期"
                        },
                        {
                            "id": "I010",
                            "name": "一次性注射器",
                            "quantity": 150,
                            "minQuantity": 200,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L2004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "B001",
            "plateNumber": "B001",
            "department": "内科",
            "status": "使用中",
            "location": "A区-1层-05",
            "layers": [
                {
                    "id": "L3001",
                    "name": "第一层",
                    "description": "急救药品",
                    "items": [
                        {
                            "id": "I004",
                            "name": "多巴胺",
                            "quantity": 4,
                            "minQuantity": 8,
                            "expiryDate": "2025-07-05",
                            "status": "临期"
                        },
                        {
                            "id": "I005",
                            "name": "硝酸甘油",
                            "quantity": 12,
                            "minQuantity": 6,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L3002",
                    "name": "第二层",
                    "description": "医疗设备",
                    "items": [
                        {
                            "id": "I006",
                            "name": "心电监护仪",
                            "quantity": 1,
                            "minQuantity": 1,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L3003",
                    "name": "第三层",
                    "description": "消毒用品",
                    "items": [
                        {
                            "id": "I009",
                            "name": "碘伏",
                            "quantity": 15,
                            "minQuantity": 25,
                            "expiryDate": "2025-07-15",
                            "status": "临期"
                        },
                        {
                            "id": "I010",
                            "name": "一次性注射器",
                            "quantity": 150,
                            "minQuantity": 200,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L3004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "B002",
            "plateNumber": "B002",
            "department": "内科",
            "status": "可用",
            "location": "A区-1层-06",
            "layers": [
                {
                    "id": "L4001",
                    "name": "第一层",
                    "description": "急救药品",
                    "items": []
                },
                {
                    "id": "L4002",
                    "name": "第二层",
                    "description": "医疗设备",
                    "items": []
                },
                {
                    "id": "L4003",
                    "name": "第三层",
                    "description": "消毒用品",
                    "items": [
                        {
                            "id": "I009",
                            "name": "碘伏",
                            "quantity": 15,
                            "minQuantity": 25,
                            "expiryDate": "2025-07-15",
                            "status": "临期"
                        },
                        {
                            "id": "I010",
                            "name": "一次性注射器",
                            "quantity": 150,
                            "minQuantity": 200,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L4004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "C001",
            "plateNumber": "C001",
            "department": "外科",
            "status": "可用",
            "location": "C区-1层-03",
            "layers": [
                {
                    "id": "L5001",
                    "name": "第一层",
                    "description": "手术器械",
                    "items": [
                        {
                            "id": "I007",
                            "name": "手术刀",
                            "quantity": 2,
                            "minQuantity": 5,
                            "expiryDate": "2025-07-10",
                            "status": "临期"
                        },
                        {
                            "id": "I008",
                            "name": "缝合线",
                            "quantity": 50,
                            "minQuantity": 75,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L5002",
                    "name": "第二层",
                    "description": "消毒用品",
                    "items": [
                        {
                            "id": "I009",
                            "name": "碘伏",
                            "quantity": 15,
                            "minQuantity": 25,
                            "expiryDate": "2025-07-15",
                            "status": "临期"
                        },
                        {
                            "id": "I010",
                            "name": "一次性注射器",
                            "quantity": 150,
                            "minQuantity": 200,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L5003",
                    "name": "第三层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L5004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I016",
                            "name": "一次性口罩",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I017",
                            "name": "一次性帽子",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "C002",
            "plateNumber": "C002",
            "department": "外科",
            "status": "可用",
            "location": "C区-1层-04",
            "layers": [
                {
                    "id": "L6001",
                    "name": "第一层",
                    "description": "手术器械",
                    "items": []
                },
                {
                    "id": "L6002",
                    "name": "第二层",
                    "description": "消毒用品",
                    "items": []
                },
                {
                    "id": "L6003",
                    "name": "第三层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L6004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I016",
                            "name": "一次性口罩",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I017",
                            "name": "一次性帽子",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "D001",
            "plateNumber": "D001",
            "department": "儿科",
            "status": "维修中",
            "location": "D区-2层-01",
            "layers": [
                {
                    "id": "L7001",
                    "name": "第一层",
                    "description": "儿科药品",
                    "items": [
                        {
                            "id": "I011",
                            "name": "儿童退烧药",
                            "quantity": 8,
                            "minQuantity": 10,
                            "expiryDate": "2025-05-15",
                            "status": "已过期"
                        },
                        {
                            "id": "I012",
                            "name": "儿童感冒药",
                            "quantity": 15,
                            "minQuantity": 20,
                            "expiryDate": "2025-05-20",
                            "status": "已过期"
                        }
                    ]
                },
                {
                    "id": "L7002",
                    "name": "第二层",
                    "description": "儿科设备",
                    "items": [
                        {
                            "id": "I013",
                            "name": "儿童血压计",
                            "quantity": 2,
                            "minQuantity": 3,
                            "expiryDate": "2027-01-01",
                            "status": "库存不足"
                        }
                    ]
                },
                {
                    "id": "L7003",
                    "name": "第三层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L7004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I016",
                            "name": "一次性口罩",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I017",
                            "name": "一次性帽子",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        },
        {
            "id": "D002",
            "plateNumber": "D002",
            "department": "儿科",
            "status": "可用",
            "location": "D区-2层-02",
            "layers": [
                {
                    "id": "L8001",
                    "name": "第一层",
                    "description": "儿科药品",
                    "items": []
                },
                {
                    "id": "L8002",
                    "name": "第二层",
                    "description": "儿科设备",
                    "items": []
                },
                {
                    "id": "L8003",
                    "name": "第三层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I014",
                            "name": "葡萄糖注射液",
                            "quantity": 10,
                            "minQuantity": 20,
                            "expiryDate": "2026-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I015",
                            "name": "一次性手套",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                },
                {
                    "id": "L8004",
                    "name": "第四层",
                    "description": "其他物资",
                    "items": [
                        {
                            "id": "I016",
                            "name": "一次性口罩",
                            "quantity": 200,
                            "minQuantity": 100,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        },
                        {
                            "id": "I017",
                            "name": "一次性帽子",
                            "quantity": 100,
                            "minQuantity": 50,
                            "expiryDate": "2027-01-01",
                            "status": "正常"
                        }
                    ]
                }
            ]
        }
    ],

    /**
     * 物资库存数据数组
     * 包含所有物资的详细信息，用于物资管理和查询
     * 每个物资包含：基本信息、库存信息、有效期、供应商等
     */
    inventory: [
        {
            id: 'I001',                      // 物资唯一标识
            name: '肾上腺素',                // 物资名称
            category: '急救药品',            // 物资类别
            quantity: 3,                     // 当前库存数量
            minQuantity: 5,                  // 最低库存数量
            unit: '支',                      // 计量单位
            expiryDate: '2025-07-01',        // 有效期
            supplier: '医药公司A',           // 供应商
            location: '药房A区-01',          // 存放位置
            status: '临期',                  // 物资状态
            specification: '1mg/1ml',        // 规格
            manufacturer: '某制药公司',      // 生产厂家
            productionDate: '2023-01-15',    // 生产日期
            storageCondition: '常温避光'     // 存储条件
        },
        {
            id: 'I002',
            name: '生理盐水',
            category: '基础药品',
            quantity: 200,
            minQuantity: 100,
            unit: '瓶',
            expiryDate: '2027-01-01',
            supplier: '医药公司B',
            location: '药房B区-02',
            status: '正常',
            specification: '500ml',
            manufacturer: '某医疗用品公司',
            productionDate: '2023-06-01',
            storageCondition: '常温'
        },
        {
            id: 'I003',
            name: '除颤仪',
            category: '医疗设备',
            quantity: 5,
            minQuantity: 3,
            unit: '台',
            expiryDate: '2027-01-01',
            supplier: '医疗设备公司A',
            location: '设备室-01',
            status: '正常',
            specification: '便携式',
            manufacturer: '某医疗器械公司',
            productionDate: '2022-03-10',
            storageCondition: '常温干燥'
        },
        {
            id: 'I004',
            name: '多巴胺',
            category: '急救药品',
            quantity: 4,
            minQuantity: 8,
            unit: '支',
            expiryDate: '2025-07-05',
            supplier: '医药公司A',
            location: '药房A区-03',
            status: '临期',
            specification: '200mg/2ml',
            manufacturer: '某制药公司',
            productionDate: '2023-08-20',
            storageCondition: '常温避光'
        },
        {
            id: 'I005',
            name: '硝酸甘油',
            category: '急救药品',
            quantity: 12,
            minQuantity: 6,
            unit: '支',
            expiryDate: '2027-01-01',
            supplier: '医药公司B',
            location: '药房B区-04',
            status: '正常',
            specification: '0.5mg/片',
            manufacturer: '某制药公司',
            productionDate: '2024-02-10',
            storageCondition: '密封，阴凉处'
        },
        {
            id: 'I006',
            name: '心电监护仪',
            category: '医疗设备',
            quantity: 8,
            minQuantity: 4,
            unit: '台',
            expiryDate: '2027-01-01',
            supplier: '医疗设备公司B',
            location: '设备室-02',
            status: '正常',
            specification: '多参数',
            manufacturer: '某医疗设备公司',
            productionDate: '2023-03-01',
            storageCondition: '常温干燥'
        },
        {
            id: 'I007',
            name: '手术刀',
            category: '手术器械',
            quantity: 2,
            minQuantity: 5,
            unit: '把',
            expiryDate: '2025-07-10',
            supplier: '医疗器械公司A',
            location: '器械室-01',
            status: '临期',
            specification: '一次性，10号',
            manufacturer: '某外科器械公司',
            productionDate: '2024-01-05',
            storageCondition: '无菌，干燥'
        },
        {
            id: 'I008',
            name: '缝合线',
            category: '手术耗材',
            quantity: 50,
            minQuantity: 75,
            unit: '包',
            expiryDate: '2027-01-01',
            supplier: '医疗器械公司B',
            location: '器械室-02',
            status: '库存不足',
            specification: '可吸收，3-0',
            manufacturer: '某医用材料公司',
            productionDate: '2023-09-20',
            storageCondition: '常温避光'
        },
        {
            id: 'I009',
            name: '碘伏',
            category: '消毒用品',
            quantity: 15,
            minQuantity: 25,
            unit: '瓶',
            expiryDate: '2025-07-15',
            supplier: '医药公司C',
            location: '药房C区-01',
            status: '临期',
            specification: '10%溶液',
            manufacturer: '某消毒产品公司',
            productionDate: '2024-03-01',
            storageCondition: '密封，阴凉处'
        },
        {
            id: 'I010',
            name: '一次性注射器',
            category: '医疗耗材',
            quantity: 150,
            minQuantity: 200,
            unit: '支',
            expiryDate: '2027-01-01',
            supplier: '医疗器械公司C',
            location: '耗材室-01',
            status: '库存不足',
            specification: '2ml',
            manufacturer: '某医疗器械公司',
            productionDate: '2023-11-10',
            storageCondition: '常温干燥'
        },
        {
            id: 'I011',
            name: '儿童退烧药',
            category: '儿科药品',
            quantity: 8,
            minQuantity: 10,
            unit: '盒',
            expiryDate: '2025-05-15',
            supplier: '医药公司D',
            location: '药房D区-01',
            status: '已过期',
            specification: '布洛芬混悬液',
            manufacturer: '某儿童药厂',
            productionDate: '2023-03-01',
            storageCondition: '常温'
        },
        {
            id: 'I012',
            name: '儿童感冒药',
            category: '儿科药品',
            quantity: 15,
            minQuantity: 20,
            unit: '盒',
            expiryDate: '2025-05-20',
            supplier: '医药公司D',
            location: '药房D区-02',
            status: '已过期',
            specification: '小儿氨酚黄那敏颗粒',
            manufacturer: '某儿童药厂',
            productionDate: '2023-04-10',
            storageCondition: '常温'
        },
        {
            id: 'I013',
            name: '儿童血压计',
            category: '儿科设备',
            quantity: 2,
            minQuantity: 3,
            unit: '台',
            expiryDate: '2027-01-01',
            supplier: '医疗设备公司C',
            location: '设备室-03',
            status: '库存不足',
            specification: '腕式',
            manufacturer: '某医疗设备公司',
            productionDate: '2023-05-15',
            storageCondition: '常温干燥'
        },
        {
            id: 'I014',
            name: '葡萄糖注射液',
            category: '基础药品',
            quantity: 10,
            minQuantity: 20,
            unit: '瓶',
            expiryDate: '2026-01-01',
            supplier: '医药公司B',
            location: '药房B区-05',
            status: '正常',
            specification: '5%葡萄糖，500ml',
            manufacturer: '某制药公司',
            productionDate: '2023-10-01',
            storageCondition: '常温'
        },
        {
            id: 'I015',
            name: '一次性手套',
            category: '医疗耗材',
            quantity: 100,
            minQuantity: 50,
            unit: '盒',
            expiryDate: '2027-01-01',
            supplier: '医疗器械公司C',
            location: '耗材室-02',
            status: '正常',
            specification: 'M号，乳胶',
            manufacturer: '某医疗用品公司',
            productionDate: '2023-12-01',
            storageCondition: '常温干燥'
        },
        {
            id: 'I016',
            name: '一次性口罩',
            category: '医疗耗材',
            quantity: 200,
            minQuantity: 100,
            unit: '盒',
            expiryDate: '2027-01-01',
            supplier: '医疗器械公司C',
            location: '耗材室-03',
            status: '正常',
            specification: '医用外科',
            manufacturer: '某防护用品公司',
            productionDate: '2023-11-01',
            storageCondition: '常温干燥'
        },
        {
            id: 'I017',
            name: '一次性帽子',
            category: '医疗耗材',
            quantity: 100,
            minQuantity: 50,
            unit: '盒',
            expiryDate: '2027-01-01',
            supplier: '医疗器械公司C',
            location: '耗材室-04',
            status: '正常',
            specification: '无纺布',
            manufacturer: '某防护用品公司',
            productionDate: '2023-11-05',
            storageCondition: '常温干燥'
        }
    ],

    /**
     * 物资申请记录数组
     * 记录医护人员提交的物资申领和补充申请
     * 包含申请信息、审批状态、处理结果等
     */
    requisitions: [
        {
            id: 'R20240320001',              // 申请记录唯一标识
            type: '申领',                    // 申请类型：申领/补充
            department: '急诊科',            // 申请科室
            items: [                         // 申请物资列表
                {
                    id: 'I001',
                    name: '肾上腺素',
                    quantity: 10,
                    unit: '支'
                },
                {
                    id: 'I002',
                    name: '生理盐水',
                    quantity: 20,
                    unit: '瓶'
                }
            ],
            purpose: '急救车物资补充，用于日常急救使用', // 申请用途
            urgency: '普通',                 // 紧急程度：普通/紧急/特急
            expectedDate: '2024-03-25',      // 预期到货日期
            notes: '请尽快处理',             // 备注信息
            status: '待审批',                // 申请状态：待审批/已批准/已拒绝/已完成
            applicant: '张医生',             // 申请人
            applyTime: '2024-03-20T09:30:00', // 申请时间
            approver: '',                    // 审批人
            approveTime: '',                 // 审批时间
            approveNotes: ''                 // 审批意见
        },
        {
            id: 'R20240319001',
            type: '补充',
            department: '外科',
            items: [
                {
                    id: 'I007',
                    name: '手术刀',
                    quantity: 5,
                    unit: '把'
                },
                {
                    id: 'I008',
                    name: '缝合线',
                    quantity: 30,
                    unit: '包'
                }
            ],
            purpose: '手术室物资补充，用于日常手术使用',
            urgency: '紧急',
            expectedDate: '2024-03-22',
            notes: '手术室物资即将用完，请优先处理',
            status: '已批准',
            applicant: '李医生',
            applyTime: '2024-03-19T14:20:00',
            approver: '王主任',
            approveTime: '2024-03-19T15:30:00',
            approveNotes: '已批准，请尽快安排采购'
        },
        {
            id: 'R20240318001',
            type: '申领',
            department: '儿科',
            items: [
                {
                    id: 'I014',
                    name: '葡萄糖注射液',
                    quantity: 15,
                    unit: '瓶'
                },
                {
                    id: 'I015',
                    name: '一次性手套',
                    quantity: 50,
                    unit: '盒'
                }
            ],
            purpose: '儿科病房日常物资补充',
            urgency: '普通',
            expectedDate: '2024-03-23',
            notes: '',
            status: '已完成',
            applicant: '刘医生',
            applyTime: '2024-03-18T10:15:00',
            approver: '王主任',
            approveTime: '2024-03-18T11:20:00',
            approveNotes: '已批准'
        },
        {
            id: 'R20240317001',
            type: '补充',
            department: '内科',
            items: [
                {
                    id: 'I009',
                    name: '碘伏',
                    quantity: 20,
                    unit: '瓶'
                },
                {
                    id: 'I010',
                    name: '一次性注射器',
                    quantity: 100,
                    unit: '支'
                }
            ],
            purpose: '内科病房消毒用品补充',
            urgency: '特急',
            expectedDate: '2024-03-20',
            notes: '消毒用品库存告急，请立即处理',
            status: '已拒绝',
            applicant: '陈医生',
            applyTime: '2024-03-17T16:45:00',
            approver: '王主任',
            approveTime: '2024-03-17T17:30:00',
            approveNotes: '申请数量过多，请重新调整数量后再次申请'
        },
        {
            id: 'R20240316001',
            type: '申领',
            department: '急诊科',
            items: [
                {
                    id: 'I016',
                    name: '一次性口罩',
                    quantity: 30,
                    unit: '盒'
                },
                {
                    id: 'I017',
                    name: '一次性帽子',
                    quantity: 20,
                    unit: '盒'
                }
            ],
            purpose: '急诊科防护用品补充',
            urgency: '紧急',
            expectedDate: '2024-03-21',
            notes: '防护用品库存不足，请尽快补充',
            status: '待审批',
            applicant: '张医生',
            applyTime: '2024-03-16T11:20:00',
            approver: '',
            approveTime: '',
            approveNotes: ''
        }
    ],

    /**
     * 物资使用记录数组
     * 记录物资的出库和入库操作
     * 包含操作信息、患者信息、物资明细等
     */
    usageRecords: [
        {
            id: 'UR20240320001',             // 使用记录唯一标识
            ambulanceId: 'A001',             // 关联的急救车ID
            type: '出库',                    // 操作类型：出库/入库
            operator: '张医生',              // 操作员
            operationTime: '2024-03-20T10:00:00', // 操作时间
            patientInfo: '患者A，男，35岁，急腹症', // 患者信息（仅出库时填写）
            location: '急诊室A',             // 操作地点
            notes: '用于急诊抢救',           // 备注信息
            items: [                         // 操作物资明细
                { id: 'I001', name: '肾上腺素', quantity: 1, unit: '支' },
                { id: 'I002', name: '生理盐水', quantity: 50, unit: '瓶' }
            ]
        },
        {
            id: 'UR20240319001',
            ambulanceId: 'B001',
            type: '入库',
            operator: '李护士',
            operationTime: '2024-03-19T15:30:00',
            patientInfo: '',
            location: '内科病房',
            notes: '急救车B001日常补充',
            items: [
                { id: 'I004', name: '多巴胺', quantity: 2, unit: '支' },
                { id: 'I009', name: '碘伏', quantity: 10, unit: '瓶' }
            ]
        },
        {
            id: 'UR20240318001',
            ambulanceId: 'A002',
            type: '出库',
            operator: '王医生',
            operationTime: '2024-03-18T11:45:00',
            patientInfo: '患者B，女，60岁，心梗',
            location: 'ICU',
            notes: '紧急心肺复苏',
            items: [
                { id: 'I003', name: '除颤仪', quantity: 1, unit: '台' },
                { id: 'I005', name: '硝酸甘油', quantity: 3, unit: '支' }
            ]
        },
        {
            id: 'UR20240317001',
            ambulanceId: 'C001',
            type: '入库',
            operator: '赵护士',
            operationTime: '2024-03-17T09:00:00',
            patientInfo: '',
            location: '外科仓库',
            notes: '手术物资入库，日常维护',
            items: [
                { id: 'I007', name: '手术刀', quantity: 5, unit: '把' },
                { id: 'I008', name: '缝合线', quantity: 20, unit: '包' }
            ]
        }
    ],

    /**
     * 物资异常记录数组
     * 记录物资的异常情况，如过期、损坏、数量不符等
     * 包含异常信息、处理状态、处理步骤等
     */
    abnormals: [
        {
            id: 'AB20240320001',             // 异常记录唯一标识
            materialId: 'I001',              // 关联的物资ID
            type: '过期',                    // 异常类型：过期/损坏/数量不符
            description: '发现一批肾上腺素即将过期，需要及时处理', // 异常描述
            urgency: '紧急',                 // 紧急程度：普通/紧急/特急
            notes: '请尽快安排更换',         // 备注信息
            status: '待处理',                // 处理状态：待处理/处理中/已解决
            discoverer: '张医生',            // 发现人
            discoverTime: '2024-03-20T09:30:00', // 发现时间
            handler: '',                     // 处理人
            handleTime: '',                  // 处理时间
            handleNotes: '',                 // 处理意见
            handleSteps: []                  // 处理步骤记录
        },
        {
            id: 'AB20240319001',
            materialId: 'I007',
            type: '损坏',
            description: '手术刀在使用过程中发现刀片有缺口，可能存在安全隐患',
            urgency: '特急',
            notes: '已暂停使用该批次手术刀',
            status: '处理中',
            discoverer: '李医生',
            discoverTime: '2024-03-19T14:20:00',
            handler: '徐主任',
            handleTime: '2024-03-19T15:30:00',
            handleNotes: '正在联系供应商更换',
            handleSteps: [
                {
                    action: '开始处理',
                    notes: '已联系供应商，等待更换',
                    operator: '徐主任',
                    time: '2024-03-19T15:30:00'
                }
            ]
        },
        {
            id: 'AB20240318001',
            materialId: 'I014',
            type: '数量不符',
            description: '盘点时发现葡萄糖注射液实际数量与系统记录不符',
            urgency: '普通',
            notes: '需要重新盘点确认',
            status: '已解决',
            discoverer: '刘医生',
            discoverTime: '2024-03-18T10:15:00',
            handler: '徐主任',
            handleTime: '2024-03-18T11:20:00',
            handleNotes: '已重新盘点并更新系统记录',
            handleSteps: [
                {
                    action: '开始处理',
                    notes: '开始重新盘点',
                    operator: '徐主任',
                    time: '2024-03-18T11:20:00'
                },
                {
                    action: '更新进度',
                    notes: '盘点完成，发现系统记录有误',
                    operator: '徐主任',
                    time: '2024-03-18T11:45:00'
                },
                {
                    action: '完成处理',
                    notes: '已更新系统记录，并加强库存管理',
                    operator: '徐主任',
                    time: '2024-03-18T12:00:00'
                }
            ]
        }
    ],

    /**
     * 急救车补充请求数组
     * 记录急救车物资补充的具体请求
     * 包含请求信息、处理状态、目标层级等
     */
    replenishmentRequests: [
        { 
            id: 'R001',                      // 补充请求唯一标识
            ambulancePlate: 'A12345',        // 急救车编号
            materialName: '生理盐水',        // 物资名称
            requiredQuantity: 10,            // 需求数量
            applicant: '李医生',             // 申请人
            applicationTime: '2025-6-13 10:00', // 申请时间
            status: '待处理',                // 处理状态：待处理/已处理
            notes: '物资箱2缺少',            // 备注信息
            targetLayer: '第一层'            // 目标补充层级
        },
        { id: 'R002', ambulancePlate: 'B67890', materialName: '肾上腺素', requiredQuantity: 2, applicant: '张护士', applicationTime: '2025-6-13 14:30', status: '已处理', notes: '已补充', targetLayer: '第二层' },
        { id: 'R003', ambulancePlate: 'C12345', materialName: '葡萄糖注射液', requiredQuantity: 5, applicant: '王医生', applicationTime: '2025-6-13 11:15', status: '待处理', notes: '', targetLayer: '第三层' },
        { id: 'R004', ambulancePlate: 'D00112', materialName: '手术刀片', requiredQuantity: 20, applicant: '赵医生', applicationTime: '2025-6-13 15:00', status: '待处理', notes: '常规补充', targetLayer: '第四层' }
    ],

    /**
     * 盘点记录数组
     * 记录物资盘点的详细情况
     * 包含盘点前后的数量对比、调整原因、操作员等
     */
    inventoryRecords: [
        { 
            id: 'IR001',                     // 盘点记录唯一标识
            materialId: 'I001',              // 关联的物资ID
            materialName: '肾上腺素',        // 物资名称
            operationType: '盘点调整',       // 操作类型：入库/出库/盘点调整
            oldQuantity: 3,                  // 原库存数量
            newQuantity: 5,                  // 新库存数量
            adjustedAmount: 2,               // 调整数量（正数为盘盈，负数为盘亏）
            operator: '王管理员',            // 操作员
            operationTime: '2025-06-12 09:00', // 操作时间
            notes: '盘盈'                    // 备注说明（盘盈/盘亏/其他原因）
        },
        { id: 'IR002', materialId: 'I002', materialName: '生理盐水', operationType: '入库', oldQuantity: 200, newQuantity: 250, adjustedAmount: 50, operator: '李采购', operationTime: '2025-06-11 14:30', notes: '采购入库' },
        { id: 'IR003', materialId: 'I004', materialName: '多巴胺', operationType: '出库', oldQuantity: 4, newQuantity: 2, adjustedAmount: -2, operator: '张医生', operationTime: '2025-06-10 10:15', notes: '急救使用' },
        { id: 'IR004', materialId: 'I009', materialName: '碘伏', operationType: '盘点调整', oldQuantity: 15, newQuantity: 10, adjustedAmount: -5, operator: '王管理员', operationTime: '2025-06-09 16:00', notes: '盘亏' }
    ]
}; 